package com.nami.ucenter.application.convertor;

import com.nami.gate.external.basic.cache.user.UserSessionRel;
import com.nami.gate.external.basic.cache.user.UserDeviceRel;
import com.nami.ucenter.domain.model.UserDeviceDetailInfo;
import com.nami.ucenter.domain.model.UserModel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);


    UserDeviceRel convert3(UserModel userModel);

    UserSessionRel convert4(UserDeviceDetailInfo user);
    List<UserSessionRel> convertList4(List<UserDeviceDetailInfo> onrUserDevices);
}
